package com.example.zx.theline;

import android.content.Intent;
import android.graphics.Typeface;
import android.os.Handler;
import android.os.Bundle;
import android.view.WindowManager;
import android.widget.TextView;

import com.example.zx.theline.login.LoginActivity;

import base.BaseActivity;

public class LoadingActivity extends BaseActivity {


    TextView company_name,title;

    Handler handler;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //去除状态栏
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);

        setContentView(R.layout.activity_loading);

        InitView();
        Typeface tf=Typeface.createFromAsset(getAssets(), "fonts/STXINGKA.TTF");
        company_name.setTypeface(tf);
        title.setTypeface(tf);

        new Thread(new Runnable() {
            @Override
            public void run() {
                try {
                    Thread.sleep(3000);
                    Intent intent=new Intent(LoadingActivity.this,LoginActivity.class);
                    startActivity(intent);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        }).start();
    }


    @Override
    protected void InitView() {
        company_name= (TextView) findViewById(R.id.company_name);
        title= (TextView) findViewById(R.id.title);
    }

    @Override
    protected void InitData() {

    }

    @Override
    protected void InitListen() {

    }
}
